'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 消耗品
 * @author sundbcn@gmail.com (sun debing)
 */

var consumeUse = require('./consume/use');
var consumeBuy = require('./consume/consumeBuy.js');

module.exports = function (app) {
    return new Handler(app);
};

var Handler = function (app) {
    this.app = app;
};

/**
 * 使用
 */
Handler.prototype.use = function (msg, session, next) {
    consumeUse(msg, session, next);
};

/**
 * 外城道具产量加速(直接用钻石购买产量加速卡)
 */
Handler.prototype.consumeBuy = function (msg, session, next) {
    consumeBuy(msg, session, next);
};
